********************************************************************************
* Purpose: Imams data analysis - scaleup Eid ul Azha 2020 
* Sub-file: main table mystery shoppers - robustness to inclusion of covariates 
********************************************************************************

	****************************************************************************
	* Load data
	****************************************************************************

	use			"${imamsurvey}/merged_scaleup.dta" , clear 
	
	keep		if consent_statement==1											// Restrict the sample here to people who responded in the baseline T / C calls
																				

	****************************************************************************
	* Estimates
	****************************************************************************

	local		MS_index "None"
	local		MS_index_alt1 "Prayer mat"
	local		MS_index_alt2 "Prayer mat; mask required"

	estimates	clear

	foreach		i of varlist MS_index* {

	
				reg 		`i' treatment_any , robust 						
	
				est			sto est`i'	
				
				estadd		local exclude ``i''

	}

	****************************************************************************
	* Table 
	****************************************************************************
	
	esttab		est* using "${texrct}/scaleup_ms_robust_altindex.tex" , ///
					replace star(* .1 ** .05 *** .01) se t(4) b(4) label ///
					keep(treatment*) ///
					scalars("exclude Variables excluded from index") ///
					nonotes fragment nodepvars nomtitles 

